// pages/staffID/staffID.js

var request = require('../../utils/https.js')
var uri = 'user/carid.html'
Page({

  /**
   * 页面的初始数据
   */
  data: {
    staffImg:'',
    staffName:'',
    staffTel:''
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    var that=this;
    request.req(uri,
       {user_id:wx.getStorageSync('userId')},
       (err,res)=>{
         var data=res.data;
         that.setData({
           staffImg: data.list.img_path,
           staffName: data.list.user_name,
           staffTel: data.list.mobile
         })
    })
  },
})